package org.aptech.hdax.service.impl;

import java.util.List;
import org.aptech.hdax.dao.DepatrmentDao;
import org.aptech.hdax.pojo.Depatrment;
import org.aptech.hdax.service.DepatrmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
@Service
@Transactional(propagation = Propagation.REQUIRED)
public class DepatrmentServiceImpl implements DepatrmentService{
	@Autowired
	private DepatrmentDao depatrmentDao;
	
	@Override
	public List<Depatrment> getAll() {
		return depatrmentDao.getAll();
	}

	@Override
	public Depatrment get(Integer id) {
		return depatrmentDao.get(id);
	}

}
